package com.riant.day06;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2021/3/17 20:10
 * @Created by 张斌
 */
public class Test {
    public static  <T> T getValue(T t){
        return t;
    }

    public static void main(String[] args) {
        List list=new ArrayList ();
        list.add("abc");
        list.add(12);
        A a=new A(10);
        list.add(a);

        System.out.println(list.get(0).equals("abc"));
        System.out.println(list.get(1).equals(1));
        System.out.println(list.get(2));
        System.out.println(Test.getValue(10).getClass());
    }
}
